package wh.ispct



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(Content)
class ContentTests {
	
	void testSave(){
		Content content = new Content([title:"testTitle",text:"内容"])
		content.save(true)
		println content.id
		for(Content ct : Content.findAll()){
			println( "content:" + ct.title)
		}
		
		assertTrue(Content.findAll().size() == 1)
		
//		content.delete()
//		assertTrue(Content.findAll().size() == 0)
	}

    void testSomething() {
       fail "Implement me"
    }
}
